package cn.jg.framework.auth.model;

import cn.jg.framework.common.model.SimpleBaseMultiTenantModel;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.google.common.collect.Lists;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@JsonInclude(value = JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class AuthorizationSet extends SimpleBaseMultiTenantModel {

	private static final long serialVersionUID = 1L;

	private String name;

	private List<Menu> menuList = Lists.newArrayList();

	private List<User> userList = Lists.newArrayList();
}